home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / events.h2 < prev    next >
Encoding:
Text File  |  2001-10-16  |  8.0 KB  |  134 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 1996                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. // Events.h : main header file for the EVENTS application
  12. //
  13.  
  14. #ifndef __AFXWIN_H__
  15.     #error include 'stdafx.h' before including this file for PCH
  16. #endif
  17.  
  18. #include "resource.h"        // main symbols
  19.  
  20. //class CTCEventsDlg;
  21. class CSdiDialog;
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CTCEventsApp:
  24. // See Events.cpp for the implementation of this class
  25. //
  26.  
  27. class CTCEventsApp : public CWinApp
  28. {
  29. public:
  30.     CTCEventsApp();
  31.  
  32.     CSdiDialog* GetDialog() const { return (CSdiDialog*)m_pMainWnd; }
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CTCEventsApp)
  37.     public:
  38.     virtual BOOL InitInstance();
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42.     //{{AFX_MSG(CTCEventsApp)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.         //    DO NOT EDIT what you see in these blocks of generated code !
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47.  
  48.     // Generated OLE dispatch map functions
  49.     //{{AFX_DISPATCH(CTCEventsApp)
  50.     afx_msg void BeforeExit(LPDISPATCH TheApp, BOOL FAR* Cancel);
  51.     afx_msg void DrawingNew(LPDISPATCH WhichDrawing);
  52.     afx_msg void DrawingOpen(LPDISPATCH WhichDrawing);
  53.     afx_msg void DrawingActivate(LPDISPATCH WhichDrawing);
  54.     afx_msg void DrawingDeactivate(LPDISPATCH WhichDrawing);
  55.     afx_msg void DrawingBeforeClose(LPDISPATCH WhichDrawing, BOOL FAR* Cancel);
  56.     afx_msg void DrawingBeforeSave(LPDISPATCH WhichDrawing, BOOL FAR* SaveAs, BOOL FAR* Cancel);
  57.     afx_msg void WindowResize(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
  58.     afx_msg void WindowActivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
  59.     afx_msg void WindowDeactivate(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow);
  60.     afx_msg void MouseDown(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y);
  61.     afx_msg void MouseUp(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, short Button, long Shift, long X, long Y);
  62.     afx_msg void MouseMove(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, long Shift, long X, long Y);
  63.     afx_msg void BeforeDoubleClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel);
  64.     afx_msg void BeforeRightClick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel, BOOL FAR* Cancel);
  65.     afx_msg void SelectionChange(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Sel);
  66.     afx_msg void CommandBarControlHit(LPDISPATCH WhichControl, BOOL FAR* Cancel);
  67.     afx_msg void CommandBarControlStatus(LPDISPATCH WhichControl);
  68.     afx_msg void RunTool(LPDISPATCH WhichTool);
  69.     afx_msg void PointSnapped(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, long XScreen, long YScreen, LPDISPATCH PointRaw, LPDISPATCH PointSnapped);
  70.     afx_msg void PointPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
  71.     afx_msg void RectanglePick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
  72.     afx_msg void PolygonPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH Result, BOOL PickWasCanceled);
  73.     afx_msg void ViewBeforeRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView);
  74.     afx_msg void ViewAfterRedraw(LPDISPATCH WhichDrawing, LPDISPATCH WhichView);
  75.     afx_msg void VirtualIntersectionPick(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH PickResult, BOOL WasCanceled);
  76.     afx_msg void CommandBarControlDone(LPDISPATCH WhichControl);
  77.     afx_msg void Drop(LPDISPATCH WhichDrawing, LPDISPATCH WhichView, LPDISPATCH WhichWindow, LPDISPATCH Selection);
  78.     //}}AFX_DISPATCH
  79.     DECLARE_DISPATCH_MAP()
  80.     DECLARE_INTERFACE_MAP()
  81.  
  82.  
  83.     // DUAL_SUPPORT_START
  84.     //    add declaration of AppEvents implementation
  85.     //      You need one entry here for each entry in the
  86.     //      interface statement of the ODL, plus the entries for a
  87.     //      dispatch interface. The BEGIN_DUAL_INTERFACE_PART
  88.     //      macro in mfcdual.h automatically generates the IDispatch
  89.     //      entries for you. 
  90.     //      Each entry with the "propput" attribute needs a function
  91.     //    named "put_<property name>". Each entry with the "propget" 
  92.     //      attribute needs a function named "get_<property name>". 
  93.     //      You can pull these function prototypes from the header file 
  94.     //      generated by MKTYPLIB.
  95.     BEGIN_DUAL_INTERFACE_PART(AppEvents, IAppEvents)
  96.     STDMETHOD(BeforeExit)(THIS_ IApplication* TheApp, IMSI_BOOL* Cancel);
  97.     STDMETHOD(DrawingNew)(THIS_ IDrawing* WhichDrawing);
  98.     STDMETHOD(DrawingOpen)(THIS_ IDrawing* WhichDrawing);
  99.     STDMETHOD(DrawingActivate)(THIS_ IDrawing* WhichDrawing);
  100.     STDMETHOD(DrawingDeactivate)(THIS_ IDrawing* WhichDrawing);
  101.     STDMETHOD(DrawingBeforeClose)(THIS_ IDrawing* WhichDrawing, IMSI_BOOL* Cancel);
  102.     STDMETHOD(DrawingBeforeSave)(THIS_ IDrawing* WhichDrawing, IMSI_BOOL* SaveAs, IMSI_BOOL* Cancel);
  103.     STDMETHOD(WindowResize)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow);
  104.     STDMETHOD(WindowActivate)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow);
  105.     STDMETHOD(WindowDeactivate)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow);
  106.     STDMETHOD(MouseDown)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, ImsiMouseButton Button, long Shift, long X, long Y);
  107.     STDMETHOD(MouseUp)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, ImsiMouseButton Button, long Shift, long X, long Y);
  108.     STDMETHOD(MouseMove)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, long Shift, long X, long Y);
  109.     STDMETHOD(BeforeDoubleClick)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel, IMSI_BOOL* Cancel);
  110.     STDMETHOD(BeforeRightClick)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel, IMSI_BOOL* Cancel);
  111.     STDMETHOD(SelectionChange)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel);
  112.     STDMETHOD(CommandBarControlHit)(THIS_ CommandBarControl* WhichControl, IMSI_BOOL* Cancel);
  113.     STDMETHOD(CommandBarControlStatus)(THIS_ CommandBarControl* WhichControl);
  114.     STDMETHOD(RunTool)(THIS_ Tool* WhichTool);
  115.     STDMETHOD(PointSnapped)(THIS_ IDrawing* WhichDrawing, View* WhichView, long XScreen, long YScreen, IVertex* PointRaw, IVertex* PointSnapped);
  116.     STDMETHOD(PointPick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
  117.     STDMETHOD(RectanglePick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
  118.     STDMETHOD(PolygonPick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
  119.     STDMETHOD(ViewBeforeRedraw)(THIS_ IDrawing* WhichDrawing, View* WhichView);
  120.     STDMETHOD(ViewAfterRedraw)(THIS_ IDrawing* WhichDrawing, View* WhichView);
  121.     STDMETHOD(VirtualIntersectionPick)(THIS_ IDrawing* WhichDrawing, View* WhichView, PickResult* Pick, IMSI_BOOL WasCanceled);
  122.     STDMETHOD(CommandBarControlDone)(THIS_ CommandBarControl* WhichControl);
  123.     STDMETHOD(Drop)(THIS_ IDrawing* WhichDrawing, View* WhichView, Window* WhichWindow, Selection* Sel);
  124.     END_DUAL_INTERFACE_PART(AppEvents)
  125.  
  126.     //     add declaration of ISupportErrorInfo implementation
  127.     //     to indicate we support the OLE Automation error object
  128.     DECLARE_DUAL_ERRORINFO()
  129.     // DUAL_SUPPORT_END
  130. };
  131.  
  132.  
  133. /////////////////////////////////////////////////////////////////////////////
  134.